package com.model.factory;

/**
 * @author: cxt
 * @time: 2022/2/21
 * 框 工厂类
 */
public class FrameFactory extends AbstractFactory {

    @Override
    public Frame getShape(String shape) {
        if (shape == null) {
            return null;
        }
        if (shape.equalsIgnoreCase("RECTANGLE")) {
            return new Rectangle();
        }
        return null;
    }
}
